package com.gjzhao.fmmall.service.impl;

import com.gjzhao.fmmall.dao.UserAddMapper;
import com.gjzhao.fmmall.entity.Users;
import com.gjzhao.fmmall.service.UserAddService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 用户注册 ServiceImpl
 * @Author: gjzhao
 * @Date Created in 2022-02-12 11:23 下午
 */
@Service
public class UserAddServiceImpl implements UserAddService {

    @Autowired
    private UserAddMapper userAddMapper;

    @Override
    public int add(Users user) {
        int i = userAddMapper.insertUseGeneratedKeys(user);
        return i;
    }
}
